﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class RadioButtonDemo : Form
    {
        public RadioButtonDemo()
        {
            InitializeComponent();
        }

        private void rdoApple_CheckedChanged(object sender, EventArgs e)
        {
            txtPrice.Text = "10.00";
        }

        private void rdoBanana_CheckedChanged(object sender, EventArgs e)
        {
            txtPrice.Text = "8.50";
        }

        private void rdoPincapple_CheckedChanged(object sender, EventArgs e)
        {
            txtPrice.Text = "12.50";
        }

        private void txtPrice_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
